package com.example.demo2.mapper;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.example.demo2.model.Order;
import com.example.demo2.model.OrderVo;
import com.example.demo2.model.User;
import config.MyBaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface UserMapper extends MyBaseMapper<User> {
    List<OrderVo> selectOrders();

    IPage<Order> selectOrderPage(IPage<Order> page, @Param(Constants.WRAPPER) QueryWrapper<Order> wrapper);
}
